package com.rui.generator.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * 数据库列 Entity
 *
 * @author xr
 * @email xr@qq.com
 * @date 2020-01-01 00:00:00
 */
@ApiModel("数据库列")
@AllArgsConstructor
@NoArgsConstructor
public class Column {
    @ApiModelProperty("列名")
    private String columnName;
    @ApiModelProperty("列名类型")
    private String dataType;
    @ApiModelProperty("列名备注")
    private String columnComment;
    @ApiModelProperty("主键标识")
    private String columnKey;
    @ApiModelProperty("额外")
    private String extra;

    /* 扩展 */

    @ApiModelProperty("列的名称(首字母大写)")
    private String attrName;
    @ApiModelProperty("列的名称(首字母小写)")
    private String attrname;
    @ApiModelProperty("列的类型")
    private String attrType;

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public String getColumnComment() {
        return columnComment;
    }

    public void setColumnComment(String columnComment) {
        this.columnComment = columnComment;
    }

    public String getColumnKey() {
        return columnKey;
    }

    public void setColumnKey(String columnKey) {
        this.columnKey = columnKey;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    public String getAttrname() {
        return attrname;
    }

    public void setAttrname(String attrname) {
        this.attrname = attrname;
    }

    public String getAttrType() {
        return attrType;
    }

    public void setAttrType(String attrType) {
        this.attrType = attrType;
    }
}
